package model.response

import org.simpleframework.xml.Element

import scala.beans.BeanProperty

class PayResponse {

  @BeanProperty var returnCode:String = _

  @BeanProperty var returnMsg:String = _

  /** 以下字段在return_code为SUCCESS的时候有返回. */
  @BeanProperty var appid:String = _

  @BeanProperty var mchId:String = _

  @BeanProperty var deviceInfo:String = _

  @BeanProperty var nonceStr:String = _

  @BeanProperty var sign:String = _

  @BeanProperty var resultCode:String = _

  @BeanProperty var errCode:String = _

  @BeanProperty var errCodeDes:String = _

  @Element(name = "trade_type", required = false)
  @BeanProperty var tradeType:String = _

  @Element(name = "prepay_id", required = false)
  @BeanProperty var prepayId:String = _

  @Element(name = "code_url", required = false)
  @BeanProperty var codeUrl:String = _

  @Element(name = "mweb_url", required = false)
  @BeanProperty var mwebUrl:String = _
}
